package Tree_09.BinarySortTree_07;

/*
 * @Author 罗
 * @date 2020/3/26 - 3:01 上午
 *
 */



public class test {
    public static void main(String[] args) {
        BinarySortTree binarySortTree = new BinarySortTree();
        int[] array = {50,20,30,40,60,70,80,90,55,53,57,52,54,56,58};
        for (int i : array) {
            binarySortTree.add2(new NodeForBinarySortTree(i));
        }
        binarySortTree.infixList();
        binarySortTree.deleteById(55);
        System.out.println("删除后-->");
        binarySortTree.infixList();
    }
}
